package com.saicent.note.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.saicent.support.web.ws.rs.Response;

@Controller
@RequestMapping("user")
public class UserController extends AbstractController {

	@RequestMapping("login")
	public String login() {
		return "login";
	}
	
	@ResponseBody
	@RequestMapping("logout")
	public Response logout() {
		sessionAttribute("login", null);
		return Response.build(Response.RESPONSE_STATUS_OK);
	}
}
